package com.wideplay.warp.clustering;

import net.sf.swarmcache.ObjectCache;

import java.io.Serializable;

import com.google.inject.Provider;
import com.google.inject.Key;

/**
 * Created with IntelliJ IDEA.
 * On: 23/06/2007
 *
 * @author Dhanji R. Prasanna
 * @since 1.0
 */
public interface DataGrid {
    <T> void descope(Key<T> key);

    <T> T get(String key, Provider<T> creator);

    void flush();

    <T> void flush(Key<T> key);
}
